// source --> https://www.imalyaa.com/wp-content/plugins/woocommerce/assets/js/frontend/add-to-cart.min.js?ver=3.7.0 jQuery(function(o){if("undefined"==typeof wc_add_to_cart_params)return!1;function t(){this.requests=[],this.addRequest=this.addRequest.bind(this),this.run=this.run.bind(this),o(document.body).on("click",".add_to_cart_button",{addToCartHandler:this},this.onAddToCart).on("click",".remove_from_cart_button",{addToCartHandler:this},this.onRemoveFromCart).on("added_to_cart",this.updateButton).on("added_to_cart removed_from_cart",{addToCartHandler:this},this.updateFragments)}t.prototype.addRequest=function(t){this.requests.push(t),1===this.requests.length&&this.run()},t.prototype.run=function(){var t=this,a=t.requests[0].complete;t.requests[0].complete=function(){"function"==typeof a&&a(),t.requests.shift(),0'+wc_add_to_cart_params.i18n_view_cart+""),o(document.body).trigger("wc_cart_button_updated",[e]))},t.prototype.updateFragments=function(t,a){a&&(o.each(a,function(t){o(t).addClass("updating").fadeTo("400","0.6").block({message:null,overlayCSS:{opacity:.6}})}),o.each(a,function(t,a){o(t).replaceWith(a),o(t).stop(!0).css("opacity","1").unblock()}),o(document.body).trigger("wc_fragments_loaded"))},new t}); // source --> https://www.imalyaa.com/wp-content/plugins/js_composer/assets/js/vendors/woocommerce-add-to-cart.js?ver=5.4.5 window.jQuery( document ).ready( function ( $ ) { $( 'body' ).on( 'adding_to_cart', function ( event, $button, data ) { $button && $button.hasClass( 'vc_gitem-link' ) && $button .addClass( 'vc-gitem-add-to-cart-loading-btn' ) .parents( '.vc_grid-item-mini' ) .addClass( 'vc-woocommerce-add-to-cart-loading' ) .append( $( '
' ) ); } ).on( 'added_to_cart', function ( event, fragments, cart_hash, $button ) { if ( 'undefined' === typeof($button) ) { $button = $( '.vc-gitem-add-to-cart-loading-btn' ); } $button && $button.hasClass( 'vc_gitem-link' ) && $button .removeClass( 'vc-gitem-add-to-cart-loading-btn' ) .parents( '.vc_grid-item-mini' ) .removeClass( 'vc-woocommerce-add-to-cart-loading' ) .find( '.vc_wc-load-add-to-loader-wrapper' ).remove(); } ); } ); // source --> https://www.imalyaa.com/wp-content/themes/neva-child/functions.js?ver=5f637a69e13a33e7b1c2ce380f61f299 jQuery(document).ready(function($){ var part1 = "contact"; var part2 = Math.pow(2,6); var part3 = String.fromCharCode(part2); var part4 = "imalyaa.com" var part5 = part1 + String.fromCharCode(part2) + part4; $('.ajoutmailcontact').append("

" + part1 + part3 + part4 + "

"); $('.single-product .product_meta').remove(); /* fiche produit */ $('.single-product .tabs.wc-tabs li').first().remove(); /* page mon compte */ $('.woocommerce-account .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--downloads').remove(); $('.woocommerce-account .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--payment-methods').remove(); $('.woocommerce-account .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout').remove(); $('.woocommerce-account .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--dashboard').remove(); //$('.woocommerce-account.woocommerce-edit-address.page-mon-compte .woocommerce-MyAccount-navigation').remove(); //$('.woocommerce-account.woocommerce-edit-account.page-mon-compte .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--orders').remove(); $('#menuCompte #menu-menu-compte li a').mouseover(function(){ $('#menuCompte .sub-menu').show(); }); $('#menuCompte').mouseleave(function(){ $('#menuCompte .sub-menu').hide(); }); /* page mon compte -> mes commandes */ $('.woocommerce-orders.page-mon-compte .woocommerce-MyAccount-content').append('

Mes commandes

'); $('.h2MesCommandes').insertBefore('.woocommerce-orders-table'); /* suppression lien sur menu mon compte maispas sur les sous-menus*/ /*$('#menuCompte li.monCompte a').not('.sub-menu li a').removeAttr('href');*/ /* menu mon compte et mon panier en responsive */ $('#menuCompte').clone().appendTo('.mkdf-mobile-header .mkdf-position-right'); $('#menuPanier').clone().appendTo('.mkdf-mobile-header .mkdf-position-right'); });